package com.pansoft.kline.model;

import java.util.List;

/**
 * 行情交易所接口数据bean
 *
 * @autor yqs
 * @date 2018/11/19 19:51
 **/
public class BourseDataBean {

    /**
     * code : 0
     * data : {"funds":[{"_id":{"$oid":"5b67cc4ef09a39ae128b45cb"},"incomes":2.9799564262317E8,"outputs":2.2338683952877E8,"net_inflows":7.4608803094398E7,"net_flow_type":1,"type":"today","site":"bithumb"},{"_id":{"$oid":"5b67cc4cf09a39ae128b45c7"},"incomes":1.4694110936994E8,"outputs":1.8924884685501E8,"net_inflows":4.2307737485065E7,"net_flow_type":-1,"type":"today","site":"bitfinex"},{"_id":{"$oid":"5b67cc41f09a39ae128b45ad"},"incomes":0,"outputs":3.9879631910174E7,"net_inflows":3.9879631910174E7,"net_flow_type":-1,"type":"today","site":"kraken"},{"_id":{"$oid":"5b864053f09a3905248b4569"},"incomes":0,"outputs":3.9108436512077E7,"net_inflows":3.9108436512077E7,"net_flow_type":-1,"type":"today","site":"mxc"},{"_id":{"$oid":"5beade7dc08743e73a8b4567"},"incomes":1.8853128247878E8,"outputs":2.1293054380233E8,"net_inflows":2.4399261323548E7,"net_flow_type":-1,"type":"today","site":"bikicoin"},{"_id":{"$oid":"5b67cc5ef09a39ae128b45f5"},"incomes":1.7338833422431E8,"outputs":1.5264901842593E8,"net_inflows":2.0739315798381E7,"net_flow_type":1,"type":"today","site":"okex.com"},{"_id":{"$oid":"5b864034f09a3905248b4568"},"incomes":0,"outputs":9811663.1709936,"net_inflows":9811663.1709936,"net_flow_type":-1,"type":"today","site":"bitinfi"}],"fund_next_page":2,"volume_next_page":2,"exchange_volumes":[{"_id":{"$oid":"5b73df59f09a3975228b45cd"},"volume":1.4042102369807E10,"site":"okex.com","updated_time":1542627733},{"_id":{"$oid":"5b73df3ff09a3975228b45c5"},"volume":2.5326705205915E9,"site":"bitmex","updated_time":1542627713},{"_id":{"$oid":"5b73df23f09a3975228b45ae"},"volume":1.495128983954E9,"site":"bithumb","updated_time":1542627684},{"_id":{"$oid":"5b73def0f09a3975228b4584"},"volume":1.0401991227981E9,"site":"binance","updated_time":1542628241},{"_id":{"$oid":"5b73df3ff09a3975228b45c6"},"volume":7.2808369769097E8,"site":"coinnice","updated_time":1542627713},{"_id":{"$oid":"5b73df14f09a3975228b459d"},"volume":6.8937749495444E8,"site":"zb","updated_time":1542628270},{"_id":{"$oid":"5b73df6bf09a3975228b45d7"},"volume":6.7673351640673E8,"site":"huobi.pro","updated_time":1542627751},{"_id":{"$oid":"5b73decef09a3975228b4577"},"volume":5.5878022690658E8,"site":"exx","updated_time":1542628224},{"_id":{"$oid":"5b73df1ff09a3975228b45aa"},"volume":4.9214247344378E8,"site":"bitfinex","updated_time":1542628276},{"_id":{"$oid":"5beade7dc08743e73a8b4568"},"volume":4.7386036490421E8,"site":"bikicoin","updated_time":1542627701},{"_id":{"$oid":"5b73dee2f09a3975228b4580"},"volume":4.4335778502618E8,"site":"bitforex","updated_time":1542628234},{"_id":{"$oid":"5b73df4df09a3975228b45c8"},"volume":4.0001576254095E8,"site":"cex.com","updated_time":1542627719},{"_id":{"$oid":"5b73df5ef09a3975228b45d4"},"volume":3.5842654436712E8,"site":"lbank","updated_time":1542627739},{"_id":{"$oid":"5b73df37f09a3975228b45bc"},"volume":3.2277420407676E8,"site":"vvbtc","updated_time":1542627699},{"_id":{"$oid":"5b73df03f09a3975228b458d"},"volume":3.0592343739402E8,"site":"hitbtc","updated_time":1542628260},{"_id":{"$oid":"5b73df3bf09a3975228b45be"},"volume":2.9152379448489E8,"site":"bibox","updated_time":1542627704},{"_id":{"$oid":"5b73deaff09a3975228b4568"},"volume":2.8739477266149E8,"site":"coinbene","updated_time":1542628205},{"_id":{"$oid":"5b73dedef09a3975228b457c"},"volume":2.6710694287969E8,"site":"bit-z","updated_time":1542628230}]}
     */

    private int code;
    private DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * funds : [{"_id":{"$oid":"5b67cc4ef09a39ae128b45cb"},"incomes":2.9799564262317E8,"outputs":2.2338683952877E8,"net_inflows":7.4608803094398E7,"net_flow_type":1,"type":"today","site":"bithumb"},{"_id":{"$oid":"5b67cc4cf09a39ae128b45c7"},"incomes":1.4694110936994E8,"outputs":1.8924884685501E8,"net_inflows":4.2307737485065E7,"net_flow_type":-1,"type":"today","site":"bitfinex"},{"_id":{"$oid":"5b67cc41f09a39ae128b45ad"},"incomes":0,"outputs":3.9879631910174E7,"net_inflows":3.9879631910174E7,"net_flow_type":-1,"type":"today","site":"kraken"},{"_id":{"$oid":"5b864053f09a3905248b4569"},"incomes":0,"outputs":3.9108436512077E7,"net_inflows":3.9108436512077E7,"net_flow_type":-1,"type":"today","site":"mxc"},{"_id":{"$oid":"5beade7dc08743e73a8b4567"},"incomes":1.8853128247878E8,"outputs":2.1293054380233E8,"net_inflows":2.4399261323548E7,"net_flow_type":-1,"type":"today","site":"bikicoin"},{"_id":{"$oid":"5b67cc5ef09a39ae128b45f5"},"incomes":1.7338833422431E8,"outputs":1.5264901842593E8,"net_inflows":2.0739315798381E7,"net_flow_type":1,"type":"today","site":"okex.com"},{"_id":{"$oid":"5b864034f09a3905248b4568"},"incomes":0,"outputs":9811663.1709936,"net_inflows":9811663.1709936,"net_flow_type":-1,"type":"today","site":"bitinfi"}]
         * fund_next_page : 2
         * volume_next_page : 2
         * exchange_volumes : [{"_id":{"$oid":"5b73df59f09a3975228b45cd"},"volume":1.4042102369807E10,"site":"okex.com","updated_time":1542627733},{"_id":{"$oid":"5b73df3ff09a3975228b45c5"},"volume":2.5326705205915E9,"site":"bitmex","updated_time":1542627713},{"_id":{"$oid":"5b73df23f09a3975228b45ae"},"volume":1.495128983954E9,"site":"bithumb","updated_time":1542627684},{"_id":{"$oid":"5b73def0f09a3975228b4584"},"volume":1.0401991227981E9,"site":"binance","updated_time":1542628241},{"_id":{"$oid":"5b73df3ff09a3975228b45c6"},"volume":7.2808369769097E8,"site":"coinnice","updated_time":1542627713},{"_id":{"$oid":"5b73df14f09a3975228b459d"},"volume":6.8937749495444E8,"site":"zb","updated_time":1542628270},{"_id":{"$oid":"5b73df6bf09a3975228b45d7"},"volume":6.7673351640673E8,"site":"huobi.pro","updated_time":1542627751},{"_id":{"$oid":"5b73decef09a3975228b4577"},"volume":5.5878022690658E8,"site":"exx","updated_time":1542628224},{"_id":{"$oid":"5b73df1ff09a3975228b45aa"},"volume":4.9214247344378E8,"site":"bitfinex","updated_time":1542628276},{"_id":{"$oid":"5beade7dc08743e73a8b4568"},"volume":4.7386036490421E8,"site":"bikicoin","updated_time":1542627701},{"_id":{"$oid":"5b73dee2f09a3975228b4580"},"volume":4.4335778502618E8,"site":"bitforex","updated_time":1542628234},{"_id":{"$oid":"5b73df4df09a3975228b45c8"},"volume":4.0001576254095E8,"site":"cex.com","updated_time":1542627719},{"_id":{"$oid":"5b73df5ef09a3975228b45d4"},"volume":3.5842654436712E8,"site":"lbank","updated_time":1542627739},{"_id":{"$oid":"5b73df37f09a3975228b45bc"},"volume":3.2277420407676E8,"site":"vvbtc","updated_time":1542627699},{"_id":{"$oid":"5b73df03f09a3975228b458d"},"volume":3.0592343739402E8,"site":"hitbtc","updated_time":1542628260},{"_id":{"$oid":"5b73df3bf09a3975228b45be"},"volume":2.9152379448489E8,"site":"bibox","updated_time":1542627704},{"_id":{"$oid":"5b73deaff09a3975228b4568"},"volume":2.8739477266149E8,"site":"coinbene","updated_time":1542628205},{"_id":{"$oid":"5b73dedef09a3975228b457c"},"volume":2.6710694287969E8,"site":"bit-z","updated_time":1542628230}]
         */

        private int fund_next_page;
        private int volume_next_page;
        private List<FundsBean> funds;
        private List<ExchangeVolumesBean> exchange_volumes;

        public int getFund_next_page() {
            return fund_next_page;
        }

        public void setFund_next_page(int fund_next_page) {
            this.fund_next_page = fund_next_page;
        }

        public int getVolume_next_page() {
            return volume_next_page;
        }

        public void setVolume_next_page(int volume_next_page) {
            this.volume_next_page = volume_next_page;
        }

        public List<FundsBean> getFunds() {
            return funds;
        }

        public void setFunds(List<FundsBean> funds) {
            this.funds = funds;
        }

        public List<ExchangeVolumesBean> getExchange_volumes() {
            return exchange_volumes;
        }

        public void setExchange_volumes(List<ExchangeVolumesBean> exchange_volumes) {
            this.exchange_volumes = exchange_volumes;
        }

        public static class FundsBean {
            /**
             * _id : {"$oid":"5b67cc4ef09a39ae128b45cb"}
             * incomes : 2.9799564262317E8
             * outputs : 2.2338683952877E8
             * net_inflows : 7.4608803094398E7
             * net_flow_type : 1
             * type : today
             * site : bithumb
             */

            private IdBean _id;
            private double incomes;
            private double outputs;
            private double net_inflows;
            private int net_flow_type;
            private String type;
            private String site;

            public IdBean get_id() {
                return _id;
            }

            public void set_id(IdBean _id) {
                this._id = _id;
            }

            public double getIncomes() {
                return incomes;
            }

            public void setIncomes(double incomes) {
                this.incomes = incomes;
            }

            public double getOutputs() {
                return outputs;
            }

            public void setOutputs(double outputs) {
                this.outputs = outputs;
            }

            public double getNet_inflows() {
                return net_inflows;
            }

            public void setNet_inflows(double net_inflows) {
                this.net_inflows = net_inflows;
            }

            public int getNet_flow_type() {
                return net_flow_type;
            }

            public void setNet_flow_type(int net_flow_type) {
                this.net_flow_type = net_flow_type;
            }

            public String getType() {
                return type;
            }

            public void setType(String type) {
                this.type = type;
            }

            public String getSite() {
                return site;
            }

            public void setSite(String site) {
                this.site = site;
            }

            public static class IdBean {
                /**
                 * $oid : 5b67cc4ef09a39ae128b45cb
                 */

                private String $oid;

                public String get$oid() {
                    return $oid;
                }

                public void set$oid(String $oid) {
                    this.$oid = $oid;
                }
            }
        }

        public static class ExchangeVolumesBean {
            /**
             * _id : {"$oid":"5b73df59f09a3975228b45cd"}
             * volume : 1.4042102369807E10
             * site : okex.com
             * updated_time : 1542627733
             */

            private IdBeanX _id;
            private double volume;
            private String site;
            private int updated_time;
            /**
             * 传入二级页面使用
             */
            private String siteName;

            public String getSiteName() {
                return siteName;
            }

            public void setSiteName(String siteName) {
                this.siteName = siteName;
            }

            public IdBeanX get_id() {
                return _id;
            }

            public void set_id(IdBeanX _id) {
                this._id = _id;
            }

            public double getVolume() {
                return volume;
            }

            public void setVolume(double volume) {
                this.volume = volume;
            }

            public String getSite() {
                return site;
            }

            public void setSite(String site) {
                this.site = site;
            }

            public int getUpdated_time() {
                return updated_time;
            }

            public void setUpdated_time(int updated_time) {
                this.updated_time = updated_time;
            }

            public static class IdBeanX {
                /**
                 * $oid : 5b73df59f09a3975228b45cd
                 */

                private String $oid;

                public String get$oid() {
                    return $oid;
                }

                public void set$oid(String $oid) {
                    this.$oid = $oid;
                }
            }
        }
    }
}
